package com.lin.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.lin.entity.Department;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author lin
 * @since 2022-06-17
 */
public interface DepartmentService extends IService<Department> {
    Page<Department> getDepartmentList(Integer page,
                                       Integer size,
                                       Integer condition,
                                       String key);

    Boolean addDepartment(Department department);

    Boolean updateDepartment(Department department);

    Boolean removeDepartment(Integer did);
}
